<?php
/**
 * Created by 张彪.
 * User: 小马出行
 * Date: 2017/11/2
 * Time: 14:56
 */
namespace app\api\model;

use my\Define;
use my\Rsa;
use my\Security;
use think\Db;
use think\Model;

class CarInfoModel extends Model
{
    public function addCarInfo($data)
    {
        return Db::name('car_info')->insert($data);
    }

    public function getCarInfo($map,$filed='*')
    {
        return Db::name('car_info')->where($map)->field($filed)->find();
    }

    public function updateCarInfo($map,$data)
    {
        return Db::name('car_info')->where($map)->update($data);
    }
}